<?php

namespace App\Jobs\Content;

use App\Jobs\Job;
use Carbon\Carbon;

class ContentJob extends Job
{
    protected $data;

    public function __construct($data = [])
    {
        $this->data = [
            'app_id'         => env('CONTENT_APP_ID'),
            'add_time'       => Carbon::now()->timestamp,
            'user_id'        => $data['user_id'] ?? 0,
            'room_id'        => $data['room_id'] ?? 0,
            'key_id'         => $data['key_id'] ?? 0,  // 原始数据表的主键的值
            'content'        => $data['content'] ?? '',
            'content_origin' => $data['content_origin'] ?? '',//审核前内容,如果审核失败需要还原成此内容
            'content_type'   => $data['content_type'] ?? 0,//内容类型 如文本 音频 视频等
            'content_name'   => $data['content_name'] ?? 0,//内容渠道 如昵称 个性签名等
            'machine_result' => $data['machine_result'] ?? '',
            'pictures'       => $data['pictures'] ?? '',
            'videos'         => $data['videos'] ?? '',
            'voices'         => $data['voices'] ?? '',
        ];
    }

    public function handle()
    {
        return;
    }
}
